using System;

namespace WMI
{
	public class WmiException : Exception
	{
		public readonly ReturnValue ErrorCode;

		public WmiException(string msg, ReturnValue code)
			: base(msg)
		{
			ErrorCode = code;
		}

		public WmiException(ReturnValue code)
			: this(code.ToString(), code)
		{
		}
	}
}
